package com.hbnu.client.handler;

import com.hbnu.enums.Status;
import com.hbnu.message.GetPath;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class SetPathHandler extends SimpleChannelInboundHandler<GetPath> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, GetPath getPath) throws Exception {
        System.out.println("连接成功！");
        Status.SendPath=getPath.getPath();
        channelHandlerContext.close();
    }
}
